package com.library.admin.modules.book.struct;

import org.mapstruct.*;
import com.library.admin.modules.book.entity.Book;
import com.library.admin.modules.book.vo.BookVO;
import com.library.admin.modules.book.bo.BookInsert;
import com.library.admin.modules.book.bo.BookUpdate;

/**
 * 图书表(Book)对象映射转换
 *
 * @author xyh
 * @since 2023-10-05
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface BookStructMapper {

    Book updateToBook(BookUpdate update);

    Book insertToBook(BookInsert insert);

    BookVO bookToBookVO(Book book);

}

